package com.david.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "cloud-consul-payment",fallback = OrderServiceFallback.class)
@Component
public interface OrderService {

    @GetMapping("/payment/consul")
    String paymentConsul();

}
